package cn.china.myspringboot.schedule;


import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;

@Configuration
@EnableScheduling
public class MySchedule {


    @Scheduled(cron = "* 29 14 1-30 * ? ")
    public void hello(){
        System.out.println("定时任务");
    }


}
